package com.jvm.弱引用.System;

public class gc {
    public static void main(String[] args) {
        new gc();
        System.gc();

    }

    @Override
    public void finalize() throws Throwable {
        super.finalize();
        System.out.println("GC");
    }
}
